﻿using NHibernate.Mapping.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceZero.DataStore.Models
{
    /// <summary>
    /// 表递增字段值
    /// </summary>
    [Class(Table = "IceZero_TableRecordIncrement")]
    public class TableRecordIncrement : ModelBase
    {
        public TableRecordIncrement() : base(genIdAuto: true)
        {

        }

        /// <summary>
        /// 列名
        /// </summary>
        [Property(Column = "TableName", TypeType = typeof(string), Length = 255)]
        public virtual string TableName { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        [Property(Column = "ColumnName", TypeType = typeof(string), Length = 255)]
        public virtual string ColumnName { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [Property(Column = "OrderNumber", TypeType = typeof(int), Length = 11)]
        public virtual int OrderNumber { get; set; } = 1;

        /// <summary>
        /// 步长数
        /// </summary>
        [Property(Column = "StepNumber", TypeType = typeof(int), Length = 11)]
        public virtual int StepNumber { get; set; } = 1;
    }
}
